<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
          integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="extensions/filter-control/bootstrap-table-filter-control.css">
    <title>Report</title>
</head>
<body>
<script src="extensions/filter-control/bootstrap-table-filter-control.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!--
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
        integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
        crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
        integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
        crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
        integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
        crossorigin="anonymous"></script>
-->

<hr class="my-4">
<h2>Operations coverage summary: {{report_tag}} {{ timestamp }}</h2>
<hr class="my-4">
<table class="table table-hover" id="legend">
    <thead>
    <tr>
        <th scope="col"><span style="color: red">"Operation_name"-"opset_version"</span></th>
        <th><span style="color: black"> Not verified Ngraph references</span></th>
    </tr>
    <tr>
        <th class="table-secondary" scope="col"></th>
        <th>Collected statistic info</th>
    </tr>
    </thead>
</table>
<table class="table table-hover" id="report">
    <thead>
    <tr>
        <th class="table-primary" scope="col" style="position: sticky; top: 0">Operation</th>
        {% for d in devices -%}
        <th class="table-primary" style="position: sticky; top: 0">{{ d }}</th>
        {% endfor %}
    </tr>
    </thead>
    <tbody>
        <tr>
        <th class="table-secondary" scope="row">Total: {{ordered_ops|length}}</th>
        {% for d in devices -%}
        <td class="table-secondary" >{{results[d]|length}}</td>
        {% endfor %}
    </tr>
        <tr>
        <th class="table-secondary" scope="row">Trusted op counter (passrate=100%):</th>
        {% for d in devices -%}
        <td class="table-secondary" >{{trusted_ops[d]}}</td>
        {% endfor %}
    </tr>
        <tr>
        <th class="table-secondary" scope="row">Tested op counter:</th>
        {% for d in devices -%}
        <td class="table-secondary" >{{general_test_count[d]}}</td>
        {% endfor %}
    </tr>
        <tr>
        <th class="table-secondary" scope="row">AVG passrate per op (=sum_pass_rates/covered_ops_num):</th>
        {% for d in devices -%}
        <td class="table-secondary" >{{pass_rate_avg[d]}}%</td>
        {% endfor %}
    </tr>
        <tr>
        <th class="table-secondary" scope="row">General passrate (=passed_tests/all_tests):</th>
        {% for d in devices -%}
        <td class="table-secondary" >{{general_pass_rate[d]}}%</td>
        {% endfor %}
    </tr>
    </tbody>
    <tbody>
    {% for op in ordered_ops -%}
    <tr>
        {% if op in verified_operations -%}
            <th scope="row">{{ op }}</th>
        {% else -%}
        <th scope="row"><span style="color: red">{{ op }}</span></th>
        {% endif -%}
        {% for d in devices -%}
        {% if op in results[d] -%}
            <td>
            {{ results[d][op].passrate }}% (<span style="color: green">p:{{ results[d][op].passed }}</span>,
               <span style="color: red">f:{{ results[d][op].failed }}</span>,s:{{ results[d][op].skipped }}</span>,
               <span style="color: red">c:{{ results[d][op].crashed }}</span>)
            </td>
        {% else -%}
        <td class="table-warning">No tests</td>
        {% endif -%}

        {% endfor %}
    </tr>
    {% endfor -%}

    </tbody>
</table>
</body>
</html>
